const getters = {
  cookie: state => state.user.cookie,
  avatar: state => state.user.avatar,
  uid: state => state.user.uid,
  isloading: state => state.user.isloading,
  //权限
   permission: state => state.user.permission,
   

  // 设置播放状态
  playing: state => state.player.playing,
  // 设置歌曲列表
  playList: state => state.player.playList,
  // 设置当前的索引
  currentIndex: state => state.player.currentIndex,
  // 设置歌手列表
  songsList: state => state.player.songsList,
  // 设置当前歌曲id
  id: state => state.player.id,
  // 设置播放模式(循环，单曲，随机)
  mode: state => state.player.mode,
    playingState: state => state.player.playingState,
  
  // 当前播放歌曲
 currentSong: state => state.player.playList[state.player.currentIndex] || {}
 
  
}
export default getters

